<?php $this->load->view('tourism/layout/header') ?>
<div class="page1">
    <header class="shopping-head">
        <ul class="am-cf">
            <a href="javascript:goHistoryBack();">
                <li class="shopping-return">
                    <i class="iconfont icon-zuojiantou"></i>
                </li>
            </a>
            <li class="shopping-input Toprev">
                <div>请输入关键字</div>
                <i class="iconfont icon-sousuo"></i>
            </li>
            <li class="shopping-more am-dropdown" data-am-dropdown>
               <a href="javascript:;" class="am-dropdown-toggle drop-down-click">
                   <i class="iconfont icon-gengduo"></i>
               </a>
               <div class="am-dropdown-content more-content">
                    <ul>
                       <li>
                           <a href="<?php echo site_url()?>" class="am-cf">
                            <i class="iconfont icon-shouye"></i>
                            <span>首页</span>
                          </a>
                      </li>
                      <li>
                            <a href="<?php echo site_url('tourism/tourism/search')?>" class="am-cf">
                              <i class="iconfont icon-sousuo"></i>
                             <span>搜索</span>
                           </a>
                       </li>
                 </ul>
               </div>
            </li>
        </ul>
    </header>
    <div class="widthMax shopping-bg">
        <?php if(count($advert_img) > 0):?>
        <div class="shopping-img am-slider am-slider-default" data-am-flexslider id="demo-slider-0">
            <ul class="am-slides">
                <?php foreach ($advert_img as $image_name): ?>
                <li>
                    <a href="<?php echo $image_name->openvar;?>">
                        <img src="<?php echo $this->config->show_image_url($image_name->picture);?>" />
                    </a>
                </li>
                <?php endforeach;?>
             </ul>
        </div>
        <?php endif;?>
        <div class="shopping-nav">
            <ul class="am-cf">
                <li>
                   <a href="<?php echo site_url('tourism/category');?>">
                     <div class="nav-splb"><i class="iconfont icon-classify"></i></div>
                     <p>商品类别</p>
                   </a>
                </li>
                <li>
                   <a href="<?php echo site_url('tourism/user/orderList');?>">
                     <div class="nav-wlxx"><i class="iconfont icon-buoumaotubiao39"></i></div>
                     <p>物流信息</p>
                   </a>
                </li>
                <li>
                   <a href="<?php echo site_url('tourism/tourismcart')?>">
                     <div class="nav-gwc"><i class="iconfont icon-gouwuche">&#xe61a;</i></div>
                     <p>购物车</p>
                   </a>
                </li>
                <li class="nav-letter">
                   <a href="<?php echo site_url('home/ucenter/index');?>">
                     <div class="nav-beizhu"><i class="iconfont icon-weibiaoti2fuzhi12"></i></div>
                     <p>我的</p>
                   </a>
                </li>
            </ul>
        </div>
        <?php if( count($sales_rank) > 0 ):?>
        <div class="seconds-kill">
             <div class="seconds-title"><p>秒杀</p></div>
             <div class="seconds-waper">
                <div class="seconds-scroller" style="width:<?php echo (count($sales_rank)*6.5).'rem';?>">
                    <ul class="am-cf">
                      <?php foreach($sales_rank as $item): ?>
                        <li>
                           <a href="<?php echo site_url('tourism/goods/info/'.$item->goods_attr_id); ?>">
                                <img src="<?php echo $this->config->show_image_url($item->images, '300-300');?>" />
                                <p>￥<?php echo $item->shop_price; ?></p>
                           </a>
                        </li>
                        <?php endforeach;?>
                    </ul>
                </div>
            </div>
        </div>
        <?php endif;?>
        <div class="shopping-hot">
            <div class="hot-title">
                <p>热门主题</p>
                <span></span>
            </div>
            <div class="hot-con">
                <div class="hot-left">
                    <div class="hot-food">
                      <a href="<?php echo site_url('tourism/goods/search').'?keyword=&cid=1&level=1';?>">
                        <p class="title">特色食品</p>
                        <p class="content">爆款低价</p>
                        <img src="/skins/tourism/images/t-09.png" />
                      </a>
                    </div>
                    <ul class="am-cf">
                        <li>
                          <a href="<?php echo site_url('tourism/goods/search').'?keyword=&cid=6&level=1';?>">
                            <p class="title">饰品</p>
                            <p class="content">为您璀璨</p>
                            <img src="/skins/tourism/images/t-10.jpg" />
                          </a>
                        </li>
                        <li class="hot-mz">
                           <a href="<?php echo site_url('tourism/goods/search').'?keyword=&cid=7&level=1';?>">
                             <p class="title">美妆</p>
                             <p class="content">呵护备至</p>
                             <img src="/skins/tourism/images/t-11.jpg" />
                           </a>
                        </li>
                    </ul>
                </div>
                <div class="hot-right">
                    <ul>
                        <li class="hot-water">
                           <a href="<?php echo site_url('tourism/goods/search').'?keyword=&cid=3&level=1';?>">
                             <p class="title">酒水饮料</p>
                             <p class="content">美酒盛宴</p>
                             <img src="/skins/tourism/images/t-12.png" />
                           </a>
                        </li>
                        <li>
                           <a href="<?php echo site_url('tourism/goods/search').'?keyword=&cid=2&level=1';?>">
                             <p class="title">生鲜</p>
                             <p class="content">新鲜果蔬</p>
                             <img src="/skins/tourism/images/t-13.jpg" />
                           </a>
                        </li>
                        <li class="hot-gyp">
                           <a href="<?php echo site_url('tourism/goods/search').'?keyword=&cid=5&level=1';?>">
                            <p class="title">工艺品</p>
                            <p class="content">精致绝伦</p>
                            <img src="/skins/tourism/images/t-14.jpg" />
                           </a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <?php if( count($provider) > 0 ):?>
            <div class="shopping-offer">
                <div class="offer-title">
                    <p>品牌专区</p>
                    <span></span>
                </div>
                <ul class="am-cf">
                     <?php foreach ($provider as $item):?>
                    <li>
                       <a href="<?php echo site_url('tourism/tourismprovider/grid').'?providerUid='.$item->uid;?>">
                           <img  class="lazy" src="/skins/tourism/images/load.jpg" data-original="<?php echo $this->config->show_image_url($item->logo); ?>" />
                       </a>
                    </li>
                    <?php endforeach;?>
                </ul>
            </div>
        <?php endif;?>
        <div class="shopping-product">
            <div class="product-title">
                <p>推荐产品</p>
                <span></span>
            </div>
            <ul class="am-cf">
                <?php foreach($local_special as $item):?>
                <li>
                    <a href="<?php echo site_url('tourism/goods/info/'.$item->goods_attr_id);?>">
                        <img class="lazy" src="/skins/tourism/images/load.jpg" data-original="<?php echo $this->config->show_image_url($item->images, '300-300')?>">
                        <div class="product-con">
                            <p class="product-intro"><?php echo $item->goods_name; ?></p>
                            <p class="product-price">
                                <span>￥<?php echo $item->shop_price; ?></span><span class="address"><?php echo strstr($item->detail, ' ', true);?></span>
                            </p>
                        </div>
                    </a>
                </li>
                <?php endforeach ?>
            </ul>
        </div>
        <a class="more-show" href="<?php echo site_url('tourism/goods/search').'?keyword=';?>">查看更多</a>
    </div>
</div>
<?php $this->load->view('tourism/layout/search');?>
<footer class="shopping-footer">
    <ul class="am-cf">
        <li>
            <a class="active" href="<?php echo site_url('tourism/tourismprovider/grid');?>">
                <i class="iconfont am-color icon-shouye"></i>
                <p>首页</p>
            </a>
        </li>
        <li>
            <a href="<?php echo site_url('home/discountMall/protection'); ?>">
                <i class="iconfont icon-tubiao-"></i>
                <p>消费保障</p>
            </a>
        </li>
        <li>
            <a href="<?php echo site_url('tourism/tourismcart');?>">
                <i class="iconfont icon-gouwuche"></i>
                <p>购物车</p>
            </a>
        </li>
        <li>
            <a href="<?php echo site_url('home/ucenter/index');?>">
                <i class="iconfont icon-wode"></i>
                <p>我的</p>
            </a>
        </li>
    </ul>
</footer>
<div data-am-widget="gotop" class="am-gotop am-gotop-fixed return-head">
    <a href="#top" title="回到顶部">
        <i class="iconfont icon-huidaodingbu"></i>顶部
    </a>
</div>
<?php $this->load->view('tourism/layout/footer') ?>
